From: Adel Gadllah Date: Sat, 23 Apr 2011 07:45:58 +0000 (+0200) Subject: SwipeScroll: Only allow starting with the left button X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~8150 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=c450120409ebca2580d1c6383c1e5be54a6c6c08;p=gnome-shell.git SwipeScroll: Only allow starting with the left button Currently we allow starting swipe-scroll with any mouse button which is weird from an UI pov and causes inconsistencies with event handling. https://bugzilla.gnome.org/show_bug.cgi?id=647186 --- diff --git a/js/ui/overview.js b/js/ui/overview.js index 9d4cad82a..ec6762544 100644 --- a/js/ui/overview.js +++ b/js/ui/overview.js @@ -281,7 +281,8 @@ Overview.prototype = { }, _onButtonPress: function(actor, event) { - if (this._scrollDirection == SwipeScrollDirection.NONE) + if (this._scrollDirection == SwipeScrollDirection.NONE + || event.get_button() != 1) return; let [stageX, stageY] = event.get_coords();